\(\int \frac {1-x^2}{(1+x^2)^2} \, dx\) [110]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 15, antiderivative size = 9 \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {x}{1+x^2} \]

[Out]

x/(x^2+1)

Rubi [A] (verified)

Time = 0.00 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {391} \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {x}{x^2+1} \]

[In]

Int[(1 - x^2)/(1 + x^2)^2,x]

[Out]

x/(1 + x^2)

Rule 391

Int[((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[c*x*((a + b*x^n)^(p + 1)/a), x]
 /; FreeQ[{a, b, c, d, n, p}, x] && NeQ[b*c - a*d, 0] && EqQ[a*d - b*c*(n*(p + 1) + 1), 0]

Rubi steps \begin{align*} \text {integral}& = \frac {x}{1+x^2} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.00 \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {x}{1+x^2} \]

[In]

Integrate[(1 - x^2)/(1 + x^2)^2,x]

[Out]

x/(1 + x^2)

Maple [A] (verified)

Time = 2.52 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.11

method result size
gosper \(\frac {x}{x^{2}+1}\) \(10\)
default \(\frac {x}{x^{2}+1}\) \(10\)
norman \(\frac {x}{x^{2}+1}\) \(10\)
risch \(\frac {x}{x^{2}+1}\) \(10\)
parallelrisch \(\frac {x}{x^{2}+1}\) \(10\)
meijerg \(\frac {2 x}{2 x^{2}+2}\) \(23\)

[In]

int((-x^2+1)/(x^2+1)^2,x,method=_RETURNVERBOSE)

[Out]

x/(x^2+1)

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.00 \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {x}{x^{2} + 1} \]

[In]

integrate((-x^2+1)/(x^2+1)^2,x, algorithm="fricas")

[Out]

x/(x^2 + 1)

Sympy [A] (verification not implemented)

Time = 0.04 (sec) , antiderivative size = 5, normalized size of antiderivative = 0.56 \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {x}{x^{2} + 1} \]

[In]

integrate((-x**2+1)/(x**2+1)**2,x)

[Out]

x/(x**2 + 1)

Maxima [A] (verification not implemented)

none

Time = 0.20 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.00 \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {x}{x^{2} + 1} \]

[In]

integrate((-x^2+1)/(x^2+1)^2,x, algorithm="maxima")

[Out]

x/(x^2 + 1)

Giac [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 7, normalized size of antiderivative = 0.78 \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {1}{x + \frac {1}{x}} \]

[In]

integrate((-x^2+1)/(x^2+1)^2,x, algorithm="giac")

[Out]

1/(x + 1/x)

Mupad [B] (verification not implemented)

Time = 0.03 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.00 \[ \int \frac {1-x^2}{\left (1+x^2\right )^2} \, dx=\frac {x}{x^2+1} \]

[In]

int(-(x^2 - 1)/(x^2 + 1)^2,x)

[Out]

x/(x^2 + 1)